//
//  Member.swift
//  OCDistributor
//
//  Created by Sam Chen on 2019/12/10.
//  Copyright © 2019 opencart.cn. All rights reserved.
//

/// 会员/团队
public struct OCDistributorMember: Codable {
    public let customerId: Int
    public let avatar: String
    public let firstname: String
    public let lastname: String
    public let level: Int
    public let dateAdded: String
}

public extension OCDistributorMember {
    var fullname: String { [firstname, lastname].joined(separator: " ") }
}
